<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class CollageInfo extends Model
{
    use HasFactory;

    protected $guarded = [];

    protected $table = 'collage_info';

    public static function addInfo($data)
    {
        return self::create($data,true);
    }

    public static function getDetail($collage_id)
    {
        return self::where('collage_id',$collage_id)->first();
    }
}
